package tech.aistar.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.aistar.entity.Show;
import tech.aistar.mapper.ShowMapper;

import java.util.List;

/**
 * 本类用来演示:
 *
 * @author jyz
 * @date 2023/3/4 15:23:27
 */
@Service
public class ShowService implements ShowMapper {

    @Autowired
    private ShowMapper showMapper;

    @Override
    public List<Show> findAll() {
        return showMapper.findAll();
    }

    @Override
    public Show getShow(int id) {
        return showMapper.getShow(id);
    }

    @Override
    public int delete(int id) {
        return showMapper.delete(id);
    }

    @Override
    public int save(Show show) {
        return showMapper.save(show);
    }

    @Override
    public int update(Show show) {
        return showMapper.update(show);
    }
}
